import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/userinfo_behavior_entity.dart';

UserinfoBehaviorEntity $UserinfoBehaviorEntityFromJson(
    Map<String, dynamic> json) {
  final UserinfoBehaviorEntity userinfoBehaviorEntity = UserinfoBehaviorEntity();
  final bool? state = jsonConvert.convert<bool>(json['state']);
  if (state != null) {
    userinfoBehaviorEntity.state = state;
  }
  return userinfoBehaviorEntity;
}

Map<String, dynamic> $UserinfoBehaviorEntityToJson(
    UserinfoBehaviorEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  return data;
}

extension UserinfoBehaviorEntityExtension on UserinfoBehaviorEntity {
  UserinfoBehaviorEntity copyWith({
    bool? state,
  }) {
    return UserinfoBehaviorEntity()
      ..state = state ?? this.state;
  }
}